<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 贪婪模式 
        const str = '<div><span>';
        // [^] /^/
        console.log(str.match(/<.{1,}?>/g));
        console.log(str.match(/<.+?>/g));
        console.log(str.match(/<.*?>/g));
        // console.log(str.match(/<.?>/g));






    </script>
</body>

</html>